<?php
namespace Modules\Stats\Http\Controllers\Admin\V1;

use Illuminate\Http\Request;
use Illuminate\Routing\Controller;

use Modules\Stats\Entities\PlatformStats;
use Modules\User\Entities\User;

use Setting;
use Validator;
use ThrowException;
use DB;

class PlatformStatsController extends Controller
{
    public function index(Request $req)
    {
        $rule = [
        ];
        Validator::make($req->all(), $rule)->fails() && ThrowException::BadRequest(); 

        $options = $req->all();

        $list = PlatformStats::getList($options);

        return $list->generateListResponse();
        
    }
}
